package com.retail.shopping.server.service;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import com.retail.common.core.domain.Result;
import com.retail.shopping.common.domain.ShoppingCart;
import com.retail.shopping.common.domain.ShoppingCartMidden;
import com.retail.shopping.common.domain.request.CartInsertRequest;
import com.retail.shopping.common.domain.response.CartListResponse;
import com.retail.shopping.server.service.impl.ShopCartBatchService;

/**
 * 购物车列表Service接口
 * 
 * @author retail
 * @date 2024-02-27
 */
public interface IShoppingCartMiddenService 
{



    public Result<List<CartListResponse>> selectShoppingCartMiddenList(Integer userId);

    ShoppingCartMidden selectCartMidden(CartInsertRequest cartInsertRequest);

    void updateCartMidden(CartInsertRequest cartInsertRequest);

    void insertCartMidden(CartInsertRequest cartInsertRequest);

    void deleteCartMiddenBySkuUser(Integer userId, String str);

    Map<Integer, Map<ShoppingCart, List<CartListResponse>>> selectCartMergerBathchList(ArrayList<ShopCartBatchService.CartMergeRequest> cartReqs);
}
